package cn.school.workflow.vo;

import cn.school.common.utils.SysUserUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
@Api(tags = "工作流VO")
public class WorkFlowVO implements Serializable {

    private static final long serialVersionUID = -288769739502113488L;

    /**申请人*/
    private String applicant;

    /**申请流程ID*/
    @ApiModelProperty(value = "申请流程ID")
    private String applyID;
    /**
     * 申请单名称
     */
    @ApiModelProperty(value = "申请单名称")
    private String applyTitle;
    /**
     * 审批状态 0：驳回  1：同意
     */
    @ApiModelProperty(value = "审批状态 0：驳回  1：同意")
    private Integer flag;
    /**
     * 审批人
     */
    @ApiModelProperty(value = "审批人")
    private String approvedBy;
    /**
     * 审批描述
     */
    @ApiModelProperty(value = "审批描述")
    private String applyDesc;

    /**
     * 附件
     */
    @ApiModelProperty(value = "附件")
    private String attachment;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门id")
    private String deptId;

    /**
     * 业务ID
     */
    @ApiModelProperty(value = "业务ID")
    private String businessKey;
    /**
     * 自定义参数
     */
    @ApiModelProperty(value = "自定义参数")
    private Map<String,Object> variables = new HashMap<>();
    /**
     * 流程ID
     */
    @ApiModelProperty(value = "流程ID")
    private String processInstanceId;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID")
    private String taskId;

    /**
     * 当前节点
     */
    @ApiModelProperty(value = "当前节点")
    private String currNode;

    /**
     * 下个节点
     */
    @ApiModelProperty(value = "下个节点")
    private String lastNode;

    private String name;

    private String processDefinitionId;

    private Date createTime;

    private Integer pageSize;

    private Integer pageNum;

    private String tenantId = SysUserUtils.getSysUser().getTenantId();

    private  Object entityObject;

}
